package cmo.neutech.day09.Score;

public class Computer extends Student{
    double operationalCapacity;
    double englishWriting;
    double midExam;
    double finalExam;
    public Computer(int sno,String name,String sex,int age,double operationalCapacity,double englishWriting,double midExam,double finalExam){
        super(sno, name, sex, age);
        this.operationalCapacity = operationalCapacity;
        this.englishWriting = englishWriting;
        this.midExam = midExam;
        this.finalExam =finalExam;
    }
    public double getScore(){
        score = 0.4*operationalCapacity+0.2*englishWriting+0.2*midExam+0.2*finalExam;
        return score;
    }
}
